package org.gd.hellojaxb.privat24.dbpool;

import org.gd.hellojaxb.privat24.dbpool.tomcat.Resource;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "Context")
@XmlAccessorType(XmlAccessType.FIELD)
public class TomcatDBPool extends DBPool {

    @XmlElement(name = "Resource")
    private List<Resource> resources;

    public TomcatDBPool() {
        resources = new ArrayList<Resource>();
    }

    public List<Resource> getResources() {
        return resources;
    }

    public void setResources(List<Resource> resources) {
        this.resources = resources;
    }
}
